{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport _slicedToArray from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";\nvar __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) {\n    if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  }\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport CloseOutlined from \"@ant-design/icons/es/icons/CloseOutlined\";\nimport EllipsisOutlined from \"@ant-design/icons/es/icons/EllipsisOutlined\";\nimport PlusOutlined from \"@ant-design/icons/es/icons/PlusOutlined\";\nimport classNames from 'classnames';\nimport RcTabs from 'rc-tabs';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport SizeContext from '../config-provider/SizeContext';\nimport warning from '../_util/warning';\nimport useAnimateConfig from './hooks/useAnimateConfig';\nimport useLegacyItems from './hooks/useLegacyItems';\nimport TabPane from './TabPane';\nimport useStyle from './style';\nfunction Tabs(_a) {\n  var type = _a.type,\n    className = _a.className,\n    propSize = _a.size,\n    _onEdit = _a.onEdit,\n    hideAdd = _a.hideAdd,\n    centered = _a.centered,\n    addIcon = _a.addIcon,\n    popupClassName = _a.popupClassName,\n    children = _a.children,\n    items = _a.items,\n    animated = _a.animated,\n    props = __rest(_a, [\"type\", \"className\", \"size\", \"onEdit\", \"hideAdd\", \"centered\", \"addIcon\", \"popupClassName\", \"children\", \"items\", \"animated\"]);\n  var customizePrefixCls = props.prefixCls,\n    _props$moreIcon = props.moreIcon,\n    moreIcon = _props$moreIcon === void 0 ? /*#__PURE__*/React.createElement(EllipsisOutlined, null) : _props$moreIcon;\n  var _React$useContext = React.useContext(ConfigContext),\n    getPrefixCls = _React$useContext.getPrefixCls,\n    direction = _React$useContext.direction,\n    getPopupContainer = _React$useContext.getPopupContainer;\n  var prefixCls = getPrefixCls('tabs', customizePrefixCls);\n  var _useStyle = useStyle(prefixCls),\n    _useStyle2 = _slicedToArray(_useStyle, 2),\n    wrapSSR = _useStyle2[0],\n    hashId = _useStyle2[1];\n  var editable;\n  if (type === 'editable-card') {\n    editable = {\n      onEdit: function onEdit(editType, _ref) {\n        var key = _ref.key,\n          event = _ref.event;\n        _onEdit === null || _onEdit === void 0 ? void 0 : _onEdit(editType === 'add' ? event : key, editType);\n      },\n      removeIcon: /*#__PURE__*/React.createElement(CloseOutlined, null),\n      addIcon: addIcon || /*#__PURE__*/React.createElement(PlusOutlined, null),\n      showAdd: hideAdd !== true\n    };\n  }\n  var rootPrefixCls = getPrefixCls();\n  process.env.NODE_ENV !== \"production\" ? warning(!('onPrevClick' in props) && !('onNextClick' in props), 'Tabs', '`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead.') : void 0;\n  var mergedItems = useLegacyItems(items, children);\n  var mergedAnimated = useAnimateConfig(prefixCls, animated);\n  return wrapSSR( /*#__PURE__*/React.createElement(SizeContext.Consumer, null, function (contextSize) {\n    var _classNames;\n    var size = propSize !== undefined ? propSize : contextSize;\n    return /*#__PURE__*/React.createElement(RcTabs, Object.assign({\n      direction: direction,\n      getPopupContainer: getPopupContainer,\n      moreTransitionName: \"\".concat(rootPrefixCls, \"-slide-up\")\n    }, props, {\n      items: mergedItems,\n      className: classNames((_classNames = {}, _defineProperty(_classNames, \"\".concat(prefixCls, \"-\").concat(size), size), _defineProperty(_classNames, \"\".concat(prefixCls, \"-card\"), ['card', 'editable-card'].includes(type)), _defineProperty(_classNames, \"\".concat(prefixCls, \"-editable-card\"), type === 'editable-card'), _defineProperty(_classNames, \"\".concat(prefixCls, \"-centered\"), centered), _classNames), className, hashId),\n      popupClassName: classNames(popupClassName, hashId),\n      editable: editable,\n      moreIcon: moreIcon,\n      prefixCls: prefixCls,\n      animated: mergedAnimated\n    }));\n  }));\n}\nTabs.TabPane = TabPane;\nexport default Tabs;","map":{"version":3,"names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","CloseOutlined","EllipsisOutlined","PlusOutlined","classNames","RcTabs","React","ConfigContext","SizeContext","warning","useAnimateConfig","useLegacyItems","TabPane","useStyle","Tabs","_a","type","className","propSize","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","props","customizePrefixCls","prefixCls","moreIcon","createElement","useContext","getPrefixCls","direction","getPopupContainer","wrapSSR","hashId","editable","editType","_ref","key","event","removeIcon","showAdd","rootPrefixCls","process","env","NODE_ENV","mergedItems","mergedAnimated","Consumer","contextSize","undefined","assign","moreTransitionName","includes"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/tabs/index.js"],"sourcesContent":["var __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport CloseOutlined from \"@ant-design/icons/es/icons/CloseOutlined\";\nimport EllipsisOutlined from \"@ant-design/icons/es/icons/EllipsisOutlined\";\nimport PlusOutlined from \"@ant-design/icons/es/icons/PlusOutlined\";\nimport classNames from 'classnames';\nimport RcTabs from 'rc-tabs';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport SizeContext from '../config-provider/SizeContext';\nimport warning from '../_util/warning';\nimport useAnimateConfig from './hooks/useAnimateConfig';\nimport useLegacyItems from './hooks/useLegacyItems';\nimport TabPane from './TabPane';\nimport useStyle from './style';\nfunction Tabs(_a) {\n  var {\n      type,\n      className,\n      size: propSize,\n      onEdit,\n      hideAdd,\n      centered,\n      addIcon,\n      popupClassName,\n      children,\n      items,\n      animated\n    } = _a,\n    props = __rest(_a, [\"type\", \"className\", \"size\", \"onEdit\", \"hideAdd\", \"centered\", \"addIcon\", \"popupClassName\", \"children\", \"items\", \"animated\"]);\n  const {\n    prefixCls: customizePrefixCls,\n    moreIcon = /*#__PURE__*/React.createElement(EllipsisOutlined, null)\n  } = props;\n  const {\n    getPrefixCls,\n    direction,\n    getPopupContainer\n  } = React.useContext(ConfigContext);\n  const prefixCls = getPrefixCls('tabs', customizePrefixCls);\n  const [wrapSSR, hashId] = useStyle(prefixCls);\n  let editable;\n  if (type === 'editable-card') {\n    editable = {\n      onEdit: (editType, _ref) => {\n        let {\n          key,\n          event\n        } = _ref;\n        onEdit === null || onEdit === void 0 ? void 0 : onEdit(editType === 'add' ? event : key, editType);\n      },\n      removeIcon: /*#__PURE__*/React.createElement(CloseOutlined, null),\n      addIcon: addIcon || /*#__PURE__*/React.createElement(PlusOutlined, null),\n      showAdd: hideAdd !== true\n    };\n  }\n  const rootPrefixCls = getPrefixCls();\n  process.env.NODE_ENV !== \"production\" ? warning(!('onPrevClick' in props) && !('onNextClick' in props), 'Tabs', '`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead.') : void 0;\n  const mergedItems = useLegacyItems(items, children);\n  const mergedAnimated = useAnimateConfig(prefixCls, animated);\n  return wrapSSR( /*#__PURE__*/React.createElement(SizeContext.Consumer, null, contextSize => {\n    const size = propSize !== undefined ? propSize : contextSize;\n    return /*#__PURE__*/React.createElement(RcTabs, Object.assign({\n      direction: direction,\n      getPopupContainer: getPopupContainer,\n      moreTransitionName: `${rootPrefixCls}-slide-up`\n    }, props, {\n      items: mergedItems,\n      className: classNames({\n        [`${prefixCls}-${size}`]: size,\n        [`${prefixCls}-card`]: ['card', 'editable-card'].includes(type),\n        [`${prefixCls}-editable-card`]: type === 'editable-card',\n        [`${prefixCls}-centered`]: centered\n      }, className, hashId),\n      popupClassName: classNames(popupClassName, hashId),\n      editable: editable,\n      moreIcon: moreIcon,\n      prefixCls: prefixCls,\n      animated: mergedAnimated\n    }));\n  }));\n}\nTabs.TabPane = TabPane;\nexport default Tabs;"],"mappings":";;AAAA,IAAIA,MAAM,GAAG,IAAI,IAAI,IAAI,CAACA,MAAM,IAAI,UAAUC,CAAC,EAAEC,CAAC,EAAE;EAClD,IAAIC,CAAC,GAAG,CAAC,CAAC;EACV,KAAK,IAAIC,CAAC,IAAIH,CAAC;IAAE,IAAII,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACP,CAAC,EAAEG,CAAC,CAAC,IAAIF,CAAC,CAACO,OAAO,CAACL,CAAC,CAAC,GAAG,CAAC,EAAED,CAAC,CAACC,CAAC,CAAC,GAAGH,CAAC,CAACG,CAAC,CAAC;EAAC;EACjG,IAAIH,CAAC,IAAI,IAAI,IAAI,OAAOI,MAAM,CAACK,qBAAqB,KAAK,UAAU,EAAE,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEP,CAAC,GAAGC,MAAM,CAACK,qBAAqB,CAACT,CAAC,CAAC,EAAEU,CAAC,GAAGP,CAAC,CAACQ,MAAM,EAAED,CAAC,EAAE,EAAE;IAC3I,IAAIT,CAAC,CAACO,OAAO,CAACL,CAAC,CAACO,CAAC,CAAC,CAAC,GAAG,CAAC,IAAIN,MAAM,CAACC,SAAS,CAACO,oBAAoB,CAACL,IAAI,CAACP,CAAC,EAAEG,CAAC,CAACO,CAAC,CAAC,CAAC,EAAER,CAAC,CAACC,CAAC,CAACO,CAAC,CAAC,CAAC,GAAGV,CAAC,CAACG,CAAC,CAACO,CAAC,CAAC,CAAC;EACnG;EACA,OAAOR,CAAC;AACV,CAAC;AACD,OAAOW,aAAa,MAAM,0CAA0C;AACpE,OAAOC,gBAAgB,MAAM,6CAA6C;AAC1E,OAAOC,YAAY,MAAM,yCAAy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